package com.ytjj.bigdata.controller;

import com.ytjj.bigdata.model.dto.AdsPvCountDto;
import com.ytjj.bigdata.service.AdsPvCountService;
import com.ytjj.common.api.CommonResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/adsPv")
public class AdsPvCountController {
    @Resource
    private AdsPvCountService adsPvCountService;

    @PostMapping("/pvList")
    public CommonResult pvList(@RequestBody AdsPvCountDto adsPvCountDto) {
        return CommonResult.success(adsPvCountService.selectAdsPv(adsPvCountDto));
    }
}
